package org.csu.jpetmanage.service.serviceImpl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.csu.jpetmanage.mapper.ItemMapper;
import org.csu.jpetmanage.model.Item;
import org.csu.jpetmanage.service.ItemService;
import org.springframework.stereotype.Service;

@Service
public class ItemServiceImpl extends ServiceImpl<ItemMapper, Item> implements ItemService {
//    @Override
//    public Page<Item> itemlist(Item item, long current, long size) {
//        QueryWrapper<Item> queryWrapper = new QueryWrapper<>();
//        if (null != item.getItemid()) {
//            queryWrapper.eq("itemid", item.getItemid());
//            queryWrapper.like("productid", item.getProductid());
//            queryWrapper.like("listprice", item.getListprice());
//            queryWrapper.like("attr1", item.getAttr1());
//            queryWrapper.like("attr2", item.getAttr2());
//            queryWrapper.like("attr3", item.getAttr3());
//            queryWrapper.like("attr4", item.getAttr4());
//            queryWrapper.like("attr5", item.getAttr5());
//        }

//        return baseMapper.selectPage(new Page<>(current, size), queryWrapper);
//    }
}
